package com.pdg.mcplugin.invisiblehand.commandprocessors;

import org.bukkit.command.CommandSender;

import com.pdg.mcplugin.common.ArgumentList;
import com.pdg.mcplugin.common.baseclasses.CommandProcessorBase;
import com.pdg.mcplugin.invisiblehand.InvisibleHand;

public class ConfigCommandProcessor extends CommandProcessorBase<InvisibleHand> {

	private static final String subcommandSet = "SET";
	private static final String subcommandGet = "GET";

	public ConfigCommandProcessor(InvisibleHand thePlugin) {
		super(thePlugin, new String[]{
				"/ih config - help with the config command",
				"/ih config set - help with the config set command",
				"/ih config get - help with the config get command",
				"/ih config set (property-name) (value) - sets the configuration (property-name) to (value)",
				"/ih config get (property-name) - retrieves the configuration (property-name)",
		});
		setSubProcessor(subcommandSet,new ConfigSetCommandProcessor(thePlugin));
		setSubProcessor(subcommandGet,new ConfigGetCommandProcessor(thePlugin));
	}

	@Override
	protected boolean specialProcessCommand(CommandSender theCommandSender,
			String theSubCommand, ArgumentList theArgumentList) {
		return false;
	}

}
